package com.yang.frost.blueberry.service.impl;

import com.yang.frost.blueberry.domain.SysDepartment;
import com.yang.frost.blueberry.mapper.SysDepartmentMapper;
import com.yang.frost.blueberry.service.SysDepartmentService;
import com.yang.frost.blueberry.vo.SysDepartmentQueryVo;
import com.yang.frost.blueberry.vo.SysDepartmentTreeVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author 10296
 * @date 2021/1/25
 * @Description:
 */
@Service
public class SysDepartmentServiceImpl implements SysDepartmentService {

    @Autowired
    private SysDepartmentMapper sysDepartmentMapper;

    @Override
    public int saveSysDepartment(SysDepartment sysDepartment) throws Exception {
        return sysDepartmentMapper.saveSysDepartment(sysDepartment);

    }

    @Override
    public int updateSysDepartment(SysDepartment sysDepartment) throws Exception {
        return 0;
    }

    @Override
    public int deleteSysDepartment(Long id) throws Exception {
        return 0;
    }

    @Override
    public SysDepartment getSysDepartmentById(Serializable id) throws Exception {
        return sysDepartmentMapper.getSysDepartmentById(id);
    }

    @Override
    public List<Map<String, Object>> getSysDepartmentPageList(Map<String, Object> paramsMap) throws Exception {
        return null;
    }

    @Override
    public int isEnableSysDepartment(Long id) throws Exception {
        return 0;
    }

    @Override
    public List<SysDepartment> getAllDepartmentList() {
        return null;
    }

    @Override
    public List<SysDepartmentTreeVo> getDepartmentTree() {
        return null;
    }
}
